package com.lj.back.manage.scaffold.module.job.enums;

import com.lj.back.manage.scaffold.common.response.Response;
import com.lj.back.manage.scaffold.common.util.EnumValid;

/**
 * 定时任务状态枚举类
 * @author lv
 * @version 1.0.0
 */
public enum ScheduleStatusEnum implements EnumValid, Response {
    /**
     * 正常
     */
    NORMAL("1","运行"),

    /**
     * 暂停
     */
    PAUSE("2","暂停")
    ;

    private String code;

    private String message;

    ScheduleStatusEnum(String value, String message) {
        this.code = value;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
